package com.example.houseitemmanagebackend.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * 用户位置关系实体类
 */
@Data
@TableName("user_location")
public class UserLocation {

    @TableId(type = IdType.AUTO)
    private Integer id;

    private Integer userId;

    private Integer locationId;

    // 用户在该位置的角色类型: 0-访客, 1-管理员, 2-管理者, 3-成员
    private Integer roleType;

    private LocalDateTime createdAt;

    private LocalDateTime updatedAt;
}